Websydian v6.1 online documentationOnline documentation - Websydian v6.5

RRNEntityRelationalTable Entity

Scoped name

WSYBASE/RRNEntityRelationalTable

Overview

The fetch view of the entity scopes a function RRNEntityRelationalTable.Fetch.WsyStatelessBlockFetchRRN, that can be used in the grid components used by the WebsydianExpress Ext JS framework.

This function inherits from the standard StatelessBlockFetch function. The function adds the necessary handling of a relative record number position functionality, which makes it possible to use an existing BlockFetch function for retrieving grid data for the Ext JS for WebsydianExpress framework.

Implementing

You can implement this in three different ways.

1. If you want to have a WsyStatelessBlockFetchRRN function for your Fetch view, you can let the entity inherit directly from the RRNEntityRelationalTable entity:

Source Object Verb Target Object
MyEntity is a ENT WSYBASE/RRNEntityRelationalTable
This inheritance creates a WsyStatelessBlockFetchRRN function under your Fetch view. This can be used as is - or be an abstract base for implemented versions of the function.

 

2. If you want another view to have the BlockFetchWrapperRRN function (when you want another sort of the grid).

In this case you can let the view inherit from the DataAccessRRN.Fetch view:

Source Object Verb Target Object
MyEntity.MyView is a VW WSYBASE/RRNEntityRelationalTable.Fetch

 

3. If you want to have the BlockFetchRRN wrapper under a view, but can't create the "is a VW" triple because you already has got such a triple, you can create a new function for the view, let the function inherit directly from the view, and replace the abstract view on the function.

Source Object Verb Target Object
MyEntity.MyView function FNC MyWsyStatelessBlockFetchRRN
MyEntity.MyView.MyWsyStatelessBlockFetchRRN is a FNC WSYBASE/RRNEntityRelationalTable.Fetch.

WsyStatelessBlockFetchRRN

MyEntity.MyView.MyWsyStatelessBlockFetchRRN replaces VW

...by VW

WSYBASE/RRNEntityRelationalTable.Fetch

MyEntity.MyView

Inheritance for functions to generate and build

Just as for a standard StatelessBlockFetch function, you must add inheritance from ServerExternal as well as setting an implement Yes triple for the function before you are able to generate and build the function:

Source Object Verb Target Object
MyEntity.MyView.MyWsyStatelessBlockFetchRRN is a FNC STORAGE/ServerExternal
MyEntity.MyView.MyWsyStatelessBlockFetchRRN implement SYS Yes

Alternatives

This function is the recommended way to provide the functionality for retrieving grid data for the Ext JS WebsydianExpress framework.

However, in some cases you might want to reuse a normal BlockFetch function for retrieving these data. This is possible using the DataAccessRRN.Fetch.BlockFetchRRNWrapper function.